<?php
class ClassFile
{
	function String2File($sIn, $sFileOut) {
	  $rc = false;
	  do {
	   if (!($f = fopen($sFileOut, "wa+"))) {
		 $rc = 1; break;
	   }
	   if (!fwrite($f, $sIn)) {
		 $rc = 2; break;
	   }
	   $rc = true;
	  } while (0);
	  if ($f) {
	   fclose($f);
	  }
	  return ($rc);
	}
}
?>
